<!DOCTYPE html>
<html data-theme="light" class="">

<head>
  <meta content="always" name="referrer">
  <link rel="icon" type="image/png" href="">
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="theme-color" content="#eee">
  <title>辞之次元空间</title>
  
  <style>
    body {
    display: grid;
    grid-template-areas:
      "header"
      "content"
      "footer";
    grid-template-rows: auto auto auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: url("https://imgapi.cn/api.php?zd=mobile&fl=dongman&gs=images") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    font-family: "Arial", sans-serif;
  }
    body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); 
  z-index: -1;
}

    .image-text-container {
    grid-area: content;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
    footer {
    grid-area: footer;
    background-color: rgba(240, 248, 255, 0.5);
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
  }
    .text-and-image {
      background-color: rgba(0, 255, 255, 0.1);
      position: relative;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      text-align: center;
    }
    .text-and-image:hover {
    transform: scale(1.02);
  }
    .text-and-image::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url('/image_download2.jpg');
      background-size: cover;
      background-repeat: no-repeat;
      z-index: -1;
      border-radius: 12px;
    }

    .image-name {
      margin-top: 10px;
      font-weight: bold;
      color: #333;
    }

    .text {
      text-align: left;
      color: #333;
      font-size: 15px;
      margin-top: 10px;
      font-weight: bold;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      padding: 10px;
      border-radius: 10px;
      animation: blink 3s infinite;
    }
     @keyframes blink {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0;
      }
    }
    .rotating-image {
      width: 120px;
      height: 120px;
      display: block;
      margin: 0 auto;
      border-radius: 50%;
      animation: rotation 10s infinite linear;
    }

    @keyframes rotation {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
    .donate-link {
    text-decoration: none;
    font-size: 20px;
    color: white; 
    font-weight: bold;
  }
  
    .source-miyao {
    text-decoration: none;
    font-size: 20px;
    color: #333; 
    font-weight: bold;
    margin: 13px;
    background-color: #f5f5f5;
    padding: 12px;
    margin: 10px;
    border-radius: 10px;
  }
    .source-link{
            display: inline-block;
            border-radius: 10px;
            padding: 7px 30px;
            color: #fff;
            border: 1px solid;
            text-decoration: none;
            margin: 5px;
            font-weight: bold;
        }

    .source-link {
      display: block;
      width: 200px;
      margin: 10px auto;
      padding: 10px;
      text-align: center;
      border-radius: 10px;
      color: white;
      text-decoration: none;
      transition: transform 0.3s ease;
    }

    .source-link:hover {
      transform: scale(1.05);
    }

    
    /* 页面加载动画 */
    @keyframes loading {
      0% {
        opacity: 0;
      }
      100% {
        opacity: 1;
      }
    }

    body {
      animation: loading 3.2s ease-in-out forwards;
    }

    .footer-visible {
      opacity: 0;
      transition: opacity 0.3s ease;
      bottom: 0;
      width: 100%;
      background-color: rgba(240, 248, 255, 0.5);
      color: #333;
      text-align: center;
      padding: 10px 0;
      box-shadow:       0 -5px 10px rgba(0, 0, 0, 0.1);
      font-size: 14px;
      font-weight: bold;
    }

    .friend-link {
      display: inline-block;
      background-color: #f0f0f0;
      color: #333;
      padding: 3px 8px;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s, transform 0.3s;
    }

    .friend-link:hover {
      background-color: #e0e0e0;
      transform: scale(1.05);
    }

    .popup {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: transparent;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      z-index: 1000;
      overflow: hidden;
      padding: 0;
    }

    .popup img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
    }

    .popup-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .popup-content {
      background-color: #F0F0F0;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
      width: 80%;
      max-width: 400px;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
    }

    .popup-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 500;
    }

    .close-button {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 20px;
      cursor: pointer;
    }

    .popup-content h3 {
      margin-top: 0;
    }

    .popup-content ul {
      list-style-type: none;
      padding: 0;
    }

    .popup-content ul li a {
      color: #333;
      text-decoration: none;
      display: block;
      margin: 5px 0;
      padding: 5px 10px;
      border: 1px solid #333;
      border-radius: 5px;
    }

    .popup-content ul li a:hover {
      text-decoration: underline;
      background-color: #f0f0f0;
    }

    .sakura {
      position: fixed;
      top: -10px;
      pointer-events: none;
      animation: fall linear infinite;
    }

    @keyframes fall {
      to {
        transform: translateY(100vh) rotate(360deg); /* 向下掉落并旋转 */
      }
    }
      font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 0;
        }
     .container {
            padding: 20px;
        }
     .card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 15px;
            padding: 15px;
            display: flex;
            align-items: center;
            font-weight: bold;
        }
        .card-icon {
            font-size: 24px;
            margin-right: 10px;
            color: #666;
        }
        .card-content {
            flex: 1;
        }
        .card-title {
            font-size: 16px;
            margin: 0 0 5px;
        }
        .card-description {
            font-size: 14px;
            color: #666;
        }
        .card-button {
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 8px 15px;
            cursor: pointer;
            font-size: 14px;
            text-decoration: none;
        }
        .card-button:hover {
            background-color: #45a049;
        }
        .output-text {
    font-size: 2.3vh;
    color: #fff;
    font-family: "Microsoft JhengHei", "新細明體", sans-serif;
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    word-wrap: break-word;
}


  </style>
</head>

<body>
  <div class="image-text-container">
    <div class="text-and-image">
      <img src="touxiang.jpg" alt="头像" class="rotating-image">
      <p class="image-name">
        <span class="clickable-name" onclick="showNamePopup()">辞晨</span>
      </p>
      <p class="text" style="text-align: center;">你好，世界！欢迎来到辞之次元空间。
        QQ群：1042530528 </p>
      <a href="dsym.html" target="_blank" class="donate-link">赞赏支持</a>
    </div>
    <p id="output" class="output-text">
    <!-- 内容将在这里显示 -->
    </p>
    <a href="/miyao.html" class="source-miyao" target="_blank">🔑书源密钥🔑</a>
    <a href="https://taoba.cf/" class="source-link source-ysqfby" target="_blank">源社区发布页</a>
    <a href="https://www.yckceo.com/yuedu/shuyuan/index.html" class="source-link source-repository" target="_blank">源仓库</a>
    <a href="https://yolo52.github.io/Yuedu/" class="source-link source-yolo" target="_blank">yolo 书库</a>
    <a href="/dsym.html" class="source-link" target="_blank">支持一下</a>
    <div class="container">
        <div class="card">
            <div class="card-icon">🔗</div>
            <div class="card-content">
                <div class="card-title">链接合集</div>
                <div class="card-description">获取更多链接</div>
            </div>
            <a href="/ljhjm.html" class="card-button">访问</a>
        </div>
    
  </div>
  <footer id="footer" class="footer-visible">
    <p style="margin: 10px 0; font-weight: bold;">友情链接：</p>
    <div style="display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin-bottom: 10px;">
      <a href="https://blog.ttxz.eu.org" target="_blank" class="friend-link">天天的小站</a>
      <a href="http://czyl.cf:5080/" target="_blank" class="friend-link">在线工具箱</a>
      <button class="friend-link" onclick="togglePopup()">更多链接</button>
    </div>
    <p style="margin: 5px 0;">🧾版权所有(侵权删) © 2025 辞晨.⁧~辞⁧‭✨</p>
    <p style="margin: 5px 0;">❗不能进就挂魔法❗</p>
  </footer>

    <!-- 弹窗内容 -->
    <!-- 辞晨的弹窗 -->
    <div class="popup" id="name-popup">
      <img src="IMG_20250217_011445.png" alt="辞晨的弹窗图片">
    </div>

    <!-- 弹窗遮罩 -->
    <div class="popup-overlay" id="popup-overlay"></div>

    <!-- 弹窗内容 -->
    <div id="popup" class="popup-container" style="display: none;">
      <div class="popup-content">
        <span class="close-button" onclick="togglePopup()">×</span>
        <h3>更多链接</h3>
        <ul>
          <li><a href="https://jijianconvert.netlify.app/yuedutool" target="_blank">阅读/源阅转化工具</a></li>
          <li><a href="http://czyl.cf:8333/" target="_blank">发现规则</a></li>
          <li><a href="https://youfeng.pages.dev/" target="_blank">怣疯的博客</a></li>
          <li><a href="https://sbtool.us.kg/" target="_blank">🍟的工具箱</a></li>
          <li><a href="http://fb.shushan.vip:9999/" target="_blank">书山发布页</a></li>
          <li><a href="https://jingluo.love/" target="_blank">🐋鲸落博客</a></li>
          <li><a href="https://www.yesui.me" target="_blank">情无羁的世界</a></li>
          <!-- 添加更多链接 -->
          <!-- 如果链接很多，弹窗会自动显示滚动条 -->
        </ul>
      </div>
    </div>
    <script>
      function isScrolledToBottom() {
        return window.innerHeight + window.scrollY >= document.body.offsetHeight;
      }

      // 弹窗显示和隐藏
  function togglePopup() {
    document.getElementById('popup').style.display = document.getElementById('popup').style.display === 'none' ? 'flex' : 'none';
  }

  // 滚动加载效果
  window.addEventListener('scroll', () => {
  const footer = document.getElementById('footer');
  const footerHeight = footer.offsetHeight;
  const scrollPosition = window.innerHeight + window.scrollY;
  const documentHeight = document.body.scrollHeight;

  if (scrollPosition >= documentHeight - footerHeight) {
    footer.style.opacity = '1';
  } else {
    footer.style.opacity = '0';
  }
});

// 页面加载时调用一次滚动事件处理函数
window.addEventListener('load', () => {
  window.dispatchEvent(new Event('scroll'));
});


      function throttle(func, limit) {
        let lastFunc;
        let lastRan;
        return function() {
          const context = this;
          const args = arguments;
          if (!lastRan) {
            func.apply(context, args);
            lastRan = Date.now();
          } else {
            clearTimeout(lastFunc);
            lastFunc = setTimeout(function() {
              if ((Date.now() - lastRan) >= limit) {
                func.apply(context, args);
                lastRan = Date.now();
              }
            }, limit - (Date.now() - lastRan));
          }
        };
      }

      function togglePopup() {
        var popup = document.getElementById("popup");
        if (popup.style.display === "none") {
          popup.style.display = "flex";
        } else {
          popup.style.display = "none";
        }
      }

      function showNamePopup() {
        document.getElementById('name-popup').style.display = 'flex';
        document.getElementById('popup-overlay').style.display = 'block';
      }

      function closePopup() {
        document.getElementById('name-popup').style.display = 'none';
        document.getElementById('popup-overlay').style.display = 'none';
      }

      document.getElementById('popup-overlay').addEventListener('click', closePopup);

      function createSakura() {
        const sakura = document.createElement('div');
        sakura.className = 'sakura';
        sakura.innerHTML = '🌸';
        sakura.style.left = Math.random() * 100 + 'vw';
        sakura.style.animationDuration = Math.random() * 3 + 2 + 's';
        sakura.style.fontSize = Math.random() * 10 + 10 + 'px';
        document.body.appendChild(sakura);
        setTimeout(() => sakura.remove(), 5000);
      }
      setInterval(createSakura, 300);
      
      // Replace this URL with the API you want to access
            const apiUrl = 'https://api.qqsuu.cn/api/dm-djtang';

            // Function to fetch data from the API and display it on the page
            async function fetchData() {
                try {
                    const response = await fetch(apiUrl);
                    const data = await response.json();
                    // 获取content属性的值
                    const content = data.data.content;
                    // 将content的值设置为<p>元素的文本内容
                    document.getElementById('output').textContent = content;
                } catch (error) {
                    console.error('Error fetching data:', error);
                    document.getElementById('output').textContent = 'Error fetching data';
                }
            }

            // Call the fetchData function to access the API and display the data
            fetchData();
    </script>
  </body>
</html>


